using System.Collections.Generic;

namespace ICSharpCode.TextEditor.Document
{
	public class IndentFoldingStrategy : IFoldingStrategy
	{
		public List<FoldMarker> GenerateFoldMarkers(IDocument document, string fileName, object parseInformation)
		{
			List<FoldMarker> result = new List<FoldMarker>();
			Stack<int> stack = new Stack<int>();
			Stack<string> stack2 = new Stack<string>();
			return result;
		}

		private int GetLevel(IDocument document, int offset)
		{
			int num = 0;
			int num2 = 0;
			for (int i = offset; i < document.TextLength; i++)
			{
				if (document.GetCharAt(i) switch
				{
					' ' => (++num2 == 4) ? 1 : 0, 
					'\t' => 1, 
					_ => 0, 
				} == 0)
				{
					break;
				}
				num2 = 0;
				num++;
			}
			return num;
		}
	}
}
